﻿using TR.Domain.Entity;
using TR.Domain.Entity.BsItemType;
using TR.Domain.Repository.sqlDto;

namespace TR.Domain.Repository.Bs_warehouseRepostiory
{
    public interface Ibs_warehouseRepostiory
    {
        /// <summary>
        /// 查询
        /// </summary>
        /// <returns></returns>
        Task<bs_WareHouse> warehouseSelete(int id);
        /// <summary>
        /// 增加
        /// </summary>
        /// <param name="Item"></param>
        /// <returns></returns>
        Task<bool> warehouseAdd(bs_WareHouse bs_Ware);
        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="pageSize"></param>
        /// <param name="currentPage"></param>
        /// <param name="str"></param>
        /// <returns></returns>
        Task<FenYe<bs_WareHouse>> warehouse_FenYe(int pageSize, int currentPage, string str);
        /// <summary>
        /// 逻辑删除
        /// </summary>
        /// <param name="item_code"></param>
        /// <returns></returns>
        Task<bool> warehouseUDelect(int id);
        /// <summary>
        /// 查询id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<bs_WareHouse> warehouseSelectid(int id);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        Task<bool> ItemUpdate(bs_WareHouse uid);

        Task<bool> KWUpdate(List<int> id,string warecode);
        Task<bs_WareHouse> ItemSelectCode(string ware_code);
    }
}
